package chan.com.mvplib.presenter;

import android.os.Bundle;
import android.support.annotation.Nullable;

import chan.com.mvplib.view.BaseMvpView;


/**
 * Created by chen on 2017/12/25.
 */
public abstract class BaseMvpPresenter<V extends BaseMvpView> {

    private V mView;

    public void onCreatePresenter(@Nullable Bundle bundle) {

    }

    public void onAttachMvpView(V mvpiew) {
        mView = mvpiew;
    }

    public void onDetachMvpView() {
        mView = null;
    }

    public void onDestroyPersenter() {

    }

    public void onSaveInstanceState(Bundle outState) {

    }

    public V getMvpView() {
        return mView;
    }
}
